import React, { Component } from 'react';
import S from './index.less';

export default class Empty extends Component {
    render() {
        return (
            <div className={S.wptEmpty} style={{marginTop: this.props.top ? this.props.top : '2rem', paddingBottom: this.props.bottom ? this.props.bottom : '0'}}>
                <div className={S.icon}></div>
                <div className={S.txt}>{this.props.txt || '暂无数据'}</div>
            </div>
        );
    }
}
